import { createApp } from 'vue';
import App from './App.vue';
import './assets/global.less';
import components from './components/global';
import Router from './router/index';

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const app = createApp(App)
app.config.productionTip = false
app.use(ElementPlus)

// components
for (const i in components) {
    app.component(i, components[i])
}

app.use(Router).mount('#app')

// import { createApp } from 'vue'
// import App from './App.vue'
// import ElementPlus from 'element-plus'
// import 'element-plus/dist/index.css'

// const app = createApp(App)
// app.use(ElementPlus)
// app.mount('#app')